package com.sneakxy.cloudbase.platform.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.sneakxy.cloudbase.platform.bean.Account;

/**
 * 
 * @author 潜行的青衣
 * @see
 */
public interface IAccountService extends IBaseService<Account, String> {

	public Page<Account> findBySearch(String search, Pageable pageable);
	
	public Page<Account> findBySearch(String roleId, String search, Pageable pageable);

	public Account findOneByAccount(String account, String host);
	
	public boolean validate(String account, String host);
	
	public boolean validate(String id, String account, String host);
	
	public void removeCascad(String accountid);
}
